#include "editcityname.h"
#include "ui_editcityname.h"

editcityname::editcityname(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::editcityname)
{
    us=0;
    ui->setupUi(this);
    this->setWindowTitle("修改城市名称");
}

editcityname::~editcityname()
{
    delete ui;
}


void editcityname::on_buttonBox_accepted()
{
    us=1;
   ncityname=ui->lineEdit_new->text();
   ocityname=ui->lineEdit_old->text();
}

void editcityname::on_pushButton_cancel_clicked()
{
    this->close();
}

void editcityname::on_pushButton_OK_clicked()
{
    us=1;
   ncityname=ui->lineEdit_new->text();
   ocityname=ui->lineEdit_old->text();
   this->close();
}
